projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2440338
)
prune: Fix two crasher bugs
author
Colin Walters
<walters@verbum.org>
Mon, 27 Feb 2012 14:53:44 +0000
(09:53 -0500)
committer
Colin Walters
<walters@verbum.org>
Mon, 27 Feb 2012 14:53:44 +0000
(09:53 -0500)
src/ostree/ot-builtin-prune.c
patch
|
blob
|
history
diff --git
a/src/ostree/ot-builtin-prune.c
b/src/ostree/ot-builtin-prune.c
index d747d690fee289485c17431639fe5c35ae9f3067..30f21c4258a0b31ae88af4f2d49229a51d6ce56f 100644
(file)
--- a/
src/ostree/ot-builtin-prune.c
+++ b/
src/ostree/ot-builtin-prune.c
@@
-54,7
+54,8
@@
log_verbose (const char *fmt,
va_start (args, fmt);
- g_vprintf ("%s\n", args);
+ g_vprintf (fmt, args);
+ g_print ("\n");
va_end (args);
}
@@
-238,6
+239,8
@@
ostree_builtin_prune (int argc, char **argv, GFile *repo_path, GError **error)
gpointer key, value;
GCancellable *cancellable = NULL;
+ memset (&data, 0, sizeof (data));
+
context = g_option_context_new ("- Search for unreachable objects");
g_option_context_add_main_entries (context, options, NULL);